package com.by.config;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/4/8 21:13
 * @注释
 */


import com.by.mapping.MappedStatement;

import java.util.HashMap;
import java.util.Map;

public class Configuration {
    private String driver;
    private String url;
    private String username;
    private String password;

    private Map<String, MappedStatement> mappedStatements = new HashMap<>();

    public void addMappedStatement(String id, MappedStatement mappedStatement) {
        mappedStatements.put(id, mappedStatement);
    }

    public MappedStatement getMappedStatement(String id) {
        return mappedStatements.get(id);
    }

    // Getters and Setters
    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}